import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'


// 注册使用vuex
Vue.use(Vuex)
//rootState 根状态
const state = {
    count: 0,
}

//vuex注入vue
export default new Vuex.Store({
    state,
    getters,
    actions,
    mutations,
})
